<?php
if(!empty($mods)){
	foreach($mods as $mod){
		echo $mod->getName();
		echo '<br>';
	}
}else{
	echo 'error';
}

echo '<br>';